package com.gxa.autoparts.admin.service.impl;

import com.gxa.autoparts.admin.mapper.SystemMessageMapper;
import com.gxa.autoparts.admin.service.SystemMessageService;
import com.gxa.autoparts.core.pojo.SystemMessage;
import com.gxa.autoparts.core.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("systemMessageService")
public class SystemMessageServiceImpl extends BaseServiceImpl<SystemMessage> implements SystemMessageService {

    @Resource
    private SystemMessageMapper systemMessageMapper;

    @Override
    public List<SystemMessage> selectAllSystemMessage2(String title, String content, String time1, String time2) {
        return systemMessageMapper.selectAllSystemMessage2(title, content, time1, time2);
    }

    @Override
    public List<SystemMessage> findRecentMessage() {
        return systemMessageMapper.findRecentMessage();
    }

    @Override
    public List<SystemMessage> selectAllSystemMessage(String title, String content, String time1, String time2, Integer page, Integer size) {
        return systemMessageMapper.selectAllSystemMessage(title, content, time1, time2, page, size);
    }
}
